package com.ganeshkrishnan.globald.web.utils;

import java.util.Map;

public class Constants {
	public final static Long	PERSONID		= 14l;
	public final static Long	ID				= 14l;
	public final static String	STATUS			= "status";
	public final static String	CODE			= "code";
	public final static String	DATA			= "data";

	public int					CIVTIP			= 1;
	public int					MILTIP			= 2;
	public int					TERTIP			= 4;
	public int					WARTIP			= 8;
	public int					GAMETIP			= 16;
	public int					BOOGIEWOOGITIP	= 32;

	//	64
	//	128
	//	256
	//	512
	//	1024
	//	2048
	//	4096
	//	8192
	//	16384
	public static enum Military {
		ARMY, TANK, AIR, SPY, SUB
	}

	public static enum CivilResource {
		FOOD, WATER, HAY, WOOD, SILVER, GOLD
	}

	public static enum LocationType {
		HOME, FILL, SATELLITE, CAPTURED, ALLY, ENEMY
	}

	public void addSetting(int setting) {

	}

	@SuppressWarnings("unchecked")
	public static void LoginRedirect(Map map) {
		map.put(Constants.STATUS, "-ER");
		map.put(Constants.CODE, "401");
	}

	@SuppressWarnings("unchecked")
	public static void InvalidData(Map map) {
		map.put(Constants.STATUS, "-ER");
		map.put(Constants.CODE, "401");
	}

	@SuppressWarnings("unchecked")
	public static void UnChanged(Map map) {
		map.put(Constants.STATUS, "-ER");
		map.put(Constants.CODE, "304");
	}

	@SuppressWarnings("unchecked")
	public static void ServerError(Map map) {
		map.put(Constants.STATUS, "-ER");
		map.put(Constants.CODE, "501");
	}

	@SuppressWarnings("unchecked")
	public static void NotFound(Map map) {
		map.put(Constants.STATUS, "-ER");
		map.put(Constants.CODE, "404");
	}
}
